﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="myBoard.Calculator.ThumbUC"
	x:Name="UserControl"
	d:DesignWidth="640" d:DesignHeight="480" Width="172" Height="248">
	<UserControl.Resources>
		<ControlTemplate x:Key="ButtonControlTemplate1" TargetType="{x:Type Button}">
			<ControlTemplate.Resources>
				<Storyboard x:Key="OnPreviewMouseDown1">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Duration="00:00:00.0010000">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
				<Storyboard x:Key="MouseUp">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
			</ControlTemplate.Resources>
			<Grid>
				<Ellipse Stroke="#FF939393">
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
				</Ellipse>
				<Ellipse Stroke="{x:Null}" Margin="3,3,3,3" Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" x:Name="ellipse">
					<Ellipse.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Ellipse.RenderTransform>
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,0.702" StartPoint="0.5,1">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
					<Ellipse.BitmapEffect>
						<BlurBitmapEffect Radius="1"/>
					</Ellipse.BitmapEffect>
				</Ellipse>
				<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
			</Grid>
			<!--<ControlTemplate.Triggers>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseDown">
					<BeginStoryboard Storyboard="{StaticResource OnPreviewMouseDown1}" x:Name="OnPreviewMouseDown1_BeginStoryboard"/>
				</EventTrigger>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseUp">
					<BeginStoryboard Storyboard="{StaticResource MouseUp}" x:Name="MouseUp_BeginStoryboard"/>
				</EventTrigger>
			</ControlTemplate.Triggers>-->
		</ControlTemplate>
		<ControlTemplate x:Key="ButtonControlTemplate3" TargetType="{x:Type Button}">
			<ControlTemplate.Resources>
				<Storyboard x:Key="OnPreviewMouseDown1">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Duration="00:00:00.0010000">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
				<Storyboard x:Key="MouseUp">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
			</ControlTemplate.Resources>
			<Grid>
				<Ellipse Stroke="#FF939393">
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
				</Ellipse>
				<Ellipse Stroke="{x:Null}" Margin="3,3,3,3" Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" x:Name="ellipse">
					<Ellipse.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Ellipse.RenderTransform>
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,0.702" StartPoint="0.5,1">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
					<Ellipse.BitmapEffect>
						<BlurBitmapEffect Radius="1"/>
					</Ellipse.BitmapEffect>
				</Ellipse>
				<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
				<Rectangle Fill="#FF6B6B6B" Stroke="{x:Null}" VerticalAlignment="Center" Margin="8,0,8,0" Height="1"/>
				<Ellipse Fill="#FF6B6B6B" Stroke="{x:Null}" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,6" Width="2" Height="2"/>
				<Ellipse HorizontalAlignment="Center" Margin="11,6,11,0" VerticalAlignment="Center" Height="2" Fill="#FF6B6B6B" Stroke="{x:Null}" Width="2"/>
			</Grid>
			<ControlTemplate.Triggers>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseDown">
					<BeginStoryboard Storyboard="{StaticResource OnPreviewMouseDown1}" x:Name="OnPreviewMouseDown1_BeginStoryboard"/>
				</EventTrigger>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseUp">
					<BeginStoryboard Storyboard="{StaticResource MouseUp}" x:Name="MouseUp_BeginStoryboard"/>
				</EventTrigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
		<ControlTemplate x:Key="ButtonControlTemplate4" TargetType="{x:Type Button}">
			<ControlTemplate.Resources>
				<Storyboard x:Key="OnPreviewMouseDown1">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Duration="00:00:00.0010000">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
				<Storyboard x:Key="MouseUp">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
			</ControlTemplate.Resources>
			<Grid>
				<Ellipse Stroke="#FF939393">
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
				</Ellipse>
				<Ellipse Stroke="{x:Null}" Margin="3,3,3,3" Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" x:Name="ellipse">
					<Ellipse.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Ellipse.RenderTransform>
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,0.702" StartPoint="0.5,1">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
					<Ellipse.BitmapEffect>
						<BlurBitmapEffect Radius="1"/>
					</Ellipse.BitmapEffect>
				</Ellipse>
				<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
				<Rectangle Margin="8,0,8,0" VerticalAlignment="Center" Height="1" Fill="#FF6B6B6B" Stroke="{x:Null}" RenderTransformOrigin="0.5,0.5">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="-45"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Rectangle.RenderTransform>
				</Rectangle>
				<Rectangle RenderTransformOrigin="0.5,0.5" Margin="8,11.5,8,11.5" VerticalAlignment="Stretch" Fill="#FF6B6B6B" Stroke="{x:Null}">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="45"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Rectangle.RenderTransform>
				</Rectangle>
			</Grid>
			<ControlTemplate.Triggers>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseDown">
					<BeginStoryboard Storyboard="{StaticResource OnPreviewMouseDown1}" x:Name="OnPreviewMouseDown1_BeginStoryboard"/>
				</EventTrigger>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseUp">
					<BeginStoryboard Storyboard="{StaticResource MouseUp}" x:Name="MouseUp_BeginStoryboard"/>
				</EventTrigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
		<ControlTemplate x:Key="ButtonControlTemplate5" TargetType="{x:Type Button}">
			<ControlTemplate.Resources>
				<Storyboard x:Key="OnPreviewMouseDown1">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Duration="00:00:00.0010000">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
				<Storyboard x:Key="MouseUp">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
			</ControlTemplate.Resources>
			<Grid>
				<Ellipse Stroke="#FF939393">
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
				</Ellipse>
				<Ellipse Stroke="{x:Null}" Margin="3,3,3,3" Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" x:Name="ellipse">
					<Ellipse.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Ellipse.RenderTransform>
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,0.702" StartPoint="0.5,1">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
					<Ellipse.BitmapEffect>
						<BlurBitmapEffect Radius="1"/>
					</Ellipse.BitmapEffect>
				</Ellipse>
				<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
				<Rectangle Margin="8,0,8,0" VerticalAlignment="Center" Height="1" Fill="#FF6B6B6B" Stroke="{x:Null}"/>
			</Grid>
			<ControlTemplate.Triggers>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseDown">
					<BeginStoryboard Storyboard="{StaticResource OnPreviewMouseDown1}" x:Name="OnPreviewMouseDown1_BeginStoryboard"/>
				</EventTrigger>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseUp">
					<BeginStoryboard Storyboard="{StaticResource MouseUp}" x:Name="MouseUp_BeginStoryboard"/>
				</EventTrigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
		<ControlTemplate x:Key="ButtonControlTemplate6" TargetType="{x:Type Button}">
			<ControlTemplate.Resources>
				<Storyboard x:Key="OnPreviewMouseDown1">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)" Duration="00:00:00.0010000">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
				<Storyboard x:Key="MouseUp">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
			</ControlTemplate.Resources>
			<Grid>
				<Ellipse Stroke="#FF939393">
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
				</Ellipse>
				<Ellipse Stroke="{x:Null}" Margin="3,3,3,3" Width="Auto" Height="Auto" RenderTransformOrigin="0.5,0.5" x:Name="ellipse">
					<Ellipse.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Ellipse.RenderTransform>
					<Ellipse.Fill>
						<LinearGradientBrush EndPoint="0.5,0.702" StartPoint="0.5,1">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Ellipse.Fill>
					<Ellipse.BitmapEffect>
						<BlurBitmapEffect Radius="1"/>
					</Ellipse.BitmapEffect>
				</Ellipse>
				<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
				<Rectangle Margin="8,0,8,0" VerticalAlignment="Center" Height="1" Fill="#FF6B6B6B" Stroke="{x:Null}"/>
				<Rectangle Margin="8,11.5,8,11.5" VerticalAlignment="Stretch" Fill="#FF6B6B6B" Stroke="{x:Null}" RenderTransformOrigin="0.5,0.5">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="-90"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Rectangle.RenderTransform>
				</Rectangle>
			</Grid>
			<ControlTemplate.Triggers>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseDown">
					<BeginStoryboard Storyboard="{StaticResource OnPreviewMouseDown1}" x:Name="OnPreviewMouseDown1_BeginStoryboard"/>
				</EventTrigger>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseUp">
					<BeginStoryboard Storyboard="{StaticResource MouseUp}" x:Name="MouseUp_BeginStoryboard"/>
				</EventTrigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
		<ControlTemplate x:Key="ButtonControlTemplate2" TargetType="{x:Type Button}">
			<ControlTemplate.Resources>
				<Storyboard x:Key="OnPreviewMouseDown1">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="-180"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
				<Storyboard x:Key="MouseUp">
					<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="rectangle" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
						<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
					</DoubleAnimationUsingKeyFrames>
				</Storyboard>
			</ControlTemplate.Resources>
			<Grid>
				<Rectangle Stroke="#FF939393" RadiusX="11.5" RadiusY="11.5">
					<Rectangle.Fill>
						<LinearGradientBrush EndPoint="0.5,0.786" StartPoint="0.5,0">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Rectangle.Fill>
				</Rectangle>
				<Rectangle Stroke="{x:Null}" RadiusX="11.5" RadiusY="11.5" Margin="3,3,3,3" RenderTransformOrigin="0.5,0.5" x:Name="rectangle">
					<Rectangle.RenderTransform>
						<TransformGroup>
							<ScaleTransform ScaleX="1" ScaleY="1"/>
							<SkewTransform AngleX="0" AngleY="0"/>
							<RotateTransform Angle="0"/>
							<TranslateTransform X="0" Y="0"/>
						</TransformGroup>
					</Rectangle.RenderTransform>
					<Rectangle.BitmapEffect>
						<BlurBitmapEffect Radius="4"/>
					</Rectangle.BitmapEffect>
					<Rectangle.Fill>
						<LinearGradientBrush EndPoint="0.5,0.823" StartPoint="0.5,0.956">
							<GradientStop Color="#FFDCDCDC" Offset="0"/>
							<GradientStop Color="#FFFFFFFF" Offset="1"/>
						</LinearGradientBrush>
					</Rectangle.Fill>
				</Rectangle>
				<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
			</Grid>
			<ControlTemplate.Triggers>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseDown">
					<BeginStoryboard Storyboard="{StaticResource OnPreviewMouseDown1}"/>
				</EventTrigger>
				<EventTrigger RoutedEvent="Mouse.PreviewMouseUp">
					<BeginStoryboard Storyboard="{StaticResource MouseUp}" x:Name="MouseUp_BeginStoryboard"/>
				</EventTrigger>
			</ControlTemplate.Triggers>
		</ControlTemplate>
	</UserControl.Resources>
	<Image Source="Default.png" Stretch="Fill"/>
</UserControl>